# coding: utf-8

'''
    >>> v = Vogais()
    >>> v.a
    'a'
    >>> v.x
    Traceback (most recent call last):
        ...
    AttributeError: class Vogais has no attribute 'x'


'''

class Vogais(object):
    def __getattr__(self, atrib):
        if atrib in 'aeiou':
            return atrib
        else:
            msg = "class %s has no attribute '%s'"
            raise AttributeError(msg % (type(self).__name__, atrib))

if __name__=='__main__':
    import doctest
    doctest.testmod()
